#ifndef LOOK_H_
#define LOOK_H_

#include "config.h"
#include "protocolo_NIPC.h"
#include "manejarDisco.h"
#include "sock.h"
#include <ctype.h>
#include <string.h>

struct parPS_l{
		int SectorLogico;
		int flag;
		int codigo;
		int socket;
		char buffer[512];
		struct parPS_l *ptrSgte;
		};
typedef struct parPS_l parPS_l;
typedef parPS_l *ptrParPS_l;

parPS_l cabezal_l;

ptrParPS_l ptrLstPrim_l;
ptrParPS_l ptrLstSec_l;
int mutexSock;

void info_look(void);
void clean_look(char *c);
void trace_look(ptrColaParam*,ptrColaParam*,parametros);
void* calcularTiempos_look();
void selecCola_look(ptrColaParam*,ptrColaParam*,colaParam, char);
void agregarElemento_look(ptrColaParam*,colaParam,char);
int imprimirResultados_look(colaParam);
void imprimir_look(ptrParPS_l ); /*funcion temporal*/
char sentidoOpuesto_look(char);
int quitar(ptrColaParam*,colaParam);
colaParam buscar_look(ptrColaParam,char);
int parsearTrace_l (char*,int*);
int loguearLista_l();

#endif /* LOOK_H_ */
